package com.shilin.watchsystem.service.exception;


import com.shilin.watchsystem.enums.ResultEnum;

/**
 * 异常服务
 */
public interface ExceptionService {


     void throwException(ResultEnum resultEnum);


     void throwException(Integer code, String message);



    /**
     * 空异常
     * @param object
     */
     void throwNullException(Object object);

    /**
     * 空指针异常
     */
    void throwNullPointException(Object object, Class t);


    /**
     * 非equals异常
     * @param source
     * @param target
     * @param resultEnum
     */
     void throwNotEqualsException(Object source, Object target, ResultEnum resultEnum) ;
}
